package com.cat.mybatis.dao;

import com.cat.mybatis.domain.ImgSourceDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ImgSourceDao {
    ImgSourceDO selectById(@Param("imgId") int imgId);

    List<ImgSourceDO> selectPage(@Param("begin") int begin,@Param("offset") int offset);

    List<ImgSourceDO> selectByState(@Param("state") int state);

    void insertIgnore(@Param("img") ImgSourceDO img);

    void updateState(@Param("state") Integer state,@Param("id") Integer id);
}